//全局前置导航守卫
export const beforeEach = async ( to )=>{
    //...
    return true
}
//全局后置导航守卫
export const afterEach = ()=>{
    //...
}